﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class LocalData
{


    // 注意一定是 static 静态化
    static AsyncLocal<IEnumerable<long>?> _asyncOrgIds = new AsyncLocal<IEnumerable<long>?>();
    /// <summary>
    /// 当前用户机构ID
    /// </summary>
    public static IEnumerable<long>? OrgIds
    {
        get => _asyncOrgIds.Value;
        set => _asyncOrgIds.Value = value;
    }



    // 本人可见
    static AsyncLocal<long?> _asyncOwn = new AsyncLocal<long?>();
    /// <summary>
    /// 本人可见
    /// </summary>
    public static long? Own
    {
        get => _asyncOwn.Value;
        set => _asyncOwn.Value = value;
    }


   


}
